package com.xhapi.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.xhapi.pojo.entity.UserDiary;
import com.xhapi.pojo.vo.DiaryVO;

import java.io.IOException;

/**
 * <p>
 * 用户日记表 服务类
 * </p>
 *
 * @author author
 * @since 2024-05-08
 */
public interface IUserDiaryService extends IService<UserDiary> {
    /*
    * ES查询 查询条件为用户ID，对应文字标题或内容的keyword，分页信息
    * */
    DiaryVO search(Integer userId, String keyword, Integer pageNo, Integer pageSize) throws IOException;
    /*
    * ES新增
    * */
    void add(UserDiary userDiary) throws IOException;
    /*
    * ES删除
    * */
    void delete(Integer id) throws IOException;

}
